package me.yobol.greentable.bean;

import java.io.Serializable;
import java.sql.Date;
import java.sql.Timestamp;

/**
 * @author Yobol
 *
 */
public class UserBean implements Serializable {

	private static final long serialVersionUID = 1L;
	private int userId;
	private String name;
	private String password;
	private String gender;
	private Date birthday;
	private String email;
	private String qq;
	private String phone;
	private Timestamp registerTime;
	private Timestamp latestLoginTime;
	private int roleId;
	
	public UserBean() {
	}
	
	public UserBean(String name, String password, String gender, 
			Date birthday, String email, String qq, String phone, Timestamp registerTime,
			Timestamp latestLoginTime,int roleId) {
		this.name = name;
		this.password = password;
		this.gender = gender;
		this.birthday = birthday;
		this.email = email;
		this.qq = qq;
		this.phone = phone;
		this.registerTime = registerTime;
		this.latestLoginTime = latestLoginTime;
		this.roleId = roleId;
	}

	public UserBean(int userId, String name, String password, 
			String gender, Date birthday, String email, String qq ,String phone, Timestamp registerTime,
			Timestamp latestLoginTime,int roleId) {
		this(name, password, gender, birthday, email, qq, phone, registerTime,latestLoginTime,roleId);
		this.userId = userId;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	public String getQq() {
		return qq;
	}
	
	public void setQq(String qq) {
		this.qq = qq;
	}

	public Timestamp getRegisterTime() {
		return registerTime;
	}

	public void setRegisterTime(Timestamp registerTime) {
		this.registerTime = registerTime;
	}

	public Timestamp getLatestLoginTime() {
		return latestLoginTime;
	}

	public void setLatestLoginTime(Timestamp latestLoginTime) {
		this.latestLoginTime = latestLoginTime;
	}
	
	public int getRoleId() {
		return roleId;
	}

	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}
}
